//
//  SelectQuestion.h
//  QuizMaster
//
//  Created by Jeppe Nielsen on 3/23/15.
//  Copyright (c) 2015 Jeppe Nielsen. All rights reserved.
//

#pragma once

#include "GameState.hpp"
#include "Game.hpp"
#include "SelectQuestionSystem.hpp"
#include "TransformAnimation.hpp"
#include "BuzzerDevice.hpp"
#include "TransformAnimation.hpp"

class AnswerQuestion : public GameState<Game> {
protected:
    void Initialize();
    void Update(float dt);
    void Render();
    void Enabled();
    void Disabled();
private:
    Gui* gui;
    GameObject* bar;
    GameObject* currentPlayerSign;
    GameObject* playerName;
    
    GameObject* correctButton;
    GameObject* wrongButton;
    
    GameObject* answerFrame;
    GameObject* answerLabel;
    
    
    
    TransformAnimation moveOut;
    TransformAnimation moveIn;
    
    TransformAnimation barMoveOut;
    TransformAnimation barMoveIn;
    
    TransformAnimation barAnimation;
    
    TransformAnimation questionMoveout;
    
    float timer;
    
    void End(bool correctAnswer);
    void CorrectClicked(TouchData e);
    void WrongClicked(TouchData e);
    
    
    GameObject* correctSound;
    GameObject* wrongSound;
    GameObject* timerSound;
    GameObject* timesUpSound;
    
};
